import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AnnuityCheckComponent } from './check/check.component';
import { AnnuityDetailComponent } from './detail/detail.component';
import { EnclosureComponent } from './enclosure/enclosure.component';
import { ServiceQueryComponent } from './service-query/service-query.component';

const routes: Routes = [
	{
		path: "check",
		component: AnnuityCheckComponent
	},
	{
		path: "enclosure",
		component: EnclosureComponent
	},
	{
		path: "serviceQuery",
		component: ServiceQueryComponent
	},
	{
		path: ":index/detail/:operate",
		component: AnnuityDetailComponent
	},
	{
		path: ":index/detail/:operate/:nFundNo",
		component: AnnuityDetailComponent
	}
];

@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule]
})
export class AnnuityRoutingModule { }
